package com.bupt.ilink.service.bailian;

import com.bupt.ilink.utils.R;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

@Service
public interface FileService {
    R uploadFiles(List<MultipartFile> files, String path) throws Exception;
    R uploadFile(MultipartFile file, String path,String rename) throws Exception;
    R uploadFile(File file, String path, String rename) throws Exception;
    R createCategory(String path, String directory) throws Exception;
    R deleteFile(String path, String fileName) throws Exception;
    R deleteCategory(String path) throws Exception;

}
